﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.Controls;
using YArchitech.LIB;

namespace HYCreateDuct.FormDuct
{
	public partial class FormNewModel : System.Windows.Forms.Form
	{
		public FormNewModel()
		{
			this.InitializeComponent();
			base.Icon = Resource.YArchitechIcon;
		}

		private void btnOk_Click(object sender, EventArgs e)
		{
			this.strNewName = this.tbModelName.Text;
			if (string.IsNullOrEmpty(this.strNewName))
			{
				YJKMessageBox.Show("模板名称不能为空！");
				return;
			}
			base.DialogResult = DialogResult.OK;
			base.Close();
		}

		private void btnCancle_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		public string strNewName = "";
	}
}
